// pages/timeLimit/list/list.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
        killGoodsList: [
            {
                name: '因诗美 魅惑蕾丝面膜【单盒装】因诗美 魅惑蕾丝面膜【单盒装】',
                img: 'https://blyb.oss-cn-hangzhou.aliyuncs.com/static/images/major_img/2019-08-21/20190821/70041829742621a42b5b31a71bfbc9d7.png',
                killPrice: 198,
                price: 1980,
                sold: 20
            },
            {
                name: '因诗美 魅惑蕾丝面膜【单盒装】因诗美 魅惑蕾丝面膜【单盒装】',
                img: 'https://blyb.oss-cn-hangzhou.aliyuncs.com/static/images/major_img/2019-08-21/20190821/70041829742621a42b5b31a71bfbc9d7.png',
                killPrice: 198,
                price: 1980,
                sold: 20
            },
            {
                name: '因诗美 魅惑蕾丝面膜【单盒装】因诗美 魅惑蕾丝面膜【单盒装】',
                img: 'https://blyb.oss-cn-hangzhou.aliyuncs.com/static/images/major_img/2019-08-21/20190821/70041829742621a42b5b31a71bfbc9d7.png',
                killPrice: 198,
                price: 1980,
                sold: 20
            },
            {
                name: '因诗美 魅惑蕾丝面膜【单盒装】因诗美 魅惑蕾丝面膜【单盒装】',
                img: 'https://blyb.oss-cn-hangzhou.aliyuncs.com/static/images/major_img/2019-08-21/20190821/70041829742621a42b5b31a71bfbc9d7.png',
                killPrice: 198,
                price: 1980,
                sold: 20
            }
        ],
        h: '03',
        m: '20',
        s: '45'
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {

    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {

    },
    handleToBuy: function(e) {
        console.log(e)
        wx.navigateTo({
            url: "/pages/timeLimit/detail/detail?goodsId=" + 1
        })
    },
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {
        common.refresh()
        setTimeout(function () {
            wx.stopPullDownRefresh()
        }, 2000)
    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {

    }
})